# 导包
from rest_framework import serializers
from myapp.models import *


class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class PermissionsSer(serializers.ModelSerializer):
    class Meta:
        model = Permission
        fields = '__all__'


class AccessSer(serializers.ModelSerializer):
    class Meta:
        model = Access
        fields = '__all__'


class CourseSer(serializers.ModelSerializer):
    class Meta:
        model = Course
        fields = '__all__'